﻿package engine {
	
	public class Cylinder {
		
		public var id:int;
		private var _material:int;
		private var bore:Number; // length mm.
		private var stroke:Number; // length mm.
		private var wear:Number; // range : 0-1

		public function Cylinder(){
			wear = 1;
		}
		
		public function get corrosion():Number {
			return wear;
		}
		
		public function work():Boolean {
			wear -= 0.000000001; // TODO: will be set by material type
			if ( wear ) {
				return true;
			} else {
				return false;
			}
		}
		
		
		
	}
	
}